<?php
    include '../Include/header.inc.php';
    include '../Include/funcGestionVotes.inc.php';
?>
	
	<img id="top" src="top.png" alt="">
        <div id="form_container">
            
            <h1><a>Vote du public</a></h1>
		
            <form id="AjoutMedia" enctype="multipart/form-data" class="appnitro"  method="post">
                <div class="form_description">

                    <h2>Vote du public</h2>
                    <p>Résultat du vote du public: 5 meilleures vidéos</p>
                    
                    <ul>
                        <li>
                            <label class="description">Nom des vidéos</label>
                            
                            <?php
                                $listeVideo = SelectTop5Videos();
                                
                                $i = 1;
                                echo "<table width='50%'>";
                                echo "<tr>";
                                echo "<th>Position</th>";
                                echo "<th>Titre</th>";
                                echo "<th>Voix</th>";
                                echo "</tr>";
                                
                                
                                while($ligne = mysql_fetch_array($listeVideo)){
                                    echo "<tr>";
                                    echo "<td>$i</td>";
                                    echo "<td>$ligne[1]</td>";
                                    echo "<td>$ligne[2]</td>";
                                    echo "</tr>";
                                    $i++;
                                }
                                echo "</table>";
                            ?> 
                            
                        </li>
                </div>
            </form>
            
<?php
    include("../include/footer.php");
?>